package com.cskaoyan.mall.bean.bo;

import lombok.Data;
import lombok.Setter;

import java.util.List;

/**
 * WhereUse:
 * description:
 * date: 2021/1/11 11:35
 * Created By YiFangWan
 */

@Data
public class GoodsCreateBO {

  private GoodsLite4CreateBO goods; //直接用goods接收
  private List<GoodsSpecLite4CreateBO> specifications;
  private List<GoodsProdLite4CreatedBO> products;
  private List<GoodsAttrLite4CreateBO> attributes;



  @Data
  public static class GoodsSpecLite4CreateBO {
    /**
     * specification : S
     * value : 规格值 小号
     * picUrl :
     */
    private Integer goodsId;
    private String specification;
    private String value;
    private String picUrl;
  }


  @Data
  public static class GoodsProdLite4CreatedBO {
    /**
     * id : 0
     * specifications : ["规格值 小号","规格值 中号","大号"]
     * price : 0
     * number : 0
     * url :
     */

    private int goodsId;
    private int id;
    private int price;
    private int number;
    private String url;
    private String[] specifications;
  }


  @Data
  public static class GoodsAttrLite4CreateBO {
    /**
     * attribute : 男女
     * value : 女
     */
    private Integer goodsId;
    private String attribute;
    private String value;
  }
}


